package se.joakimback.decorator.renderer.support;

import java.awt.image.BufferedImage;

import se.joakimback.decorator.renderer.ProgressListener;

public class LogProgressListener implements ProgressListener {
	public void done(BufferedImage result) {
		System.out.println(String.format("=== Render complete ==="));
	}

	public void start(int totalRows) {
		System.out.println(String.format("=== Render begin, %s items ===",
				totalRows));
	}

	public void update(float progress) {
		System.out.println(progress);
	}

	public void preview(BufferedImage preview) {
		System.out.println("=== Preview ===");
	}
}